import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)

import 'nprogress/nprogress.css'

/**
 * 模拟数据
 */
import './mock'

// 导入全局scss主文件
import '@/styles/index.scss'

//element
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './styles/dark/css-vars.css'
import './styles/light/css-vars.css'

//批量注册ElementPlus图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

//svg
import 'virtual:svg-icons-register'

//引入动画
import 'animate.css'

//pinia
import store from './store'
app.use(store)

//路由
import router from './router/index'
app.use(router)

import baiduMap from 'vue3-baidu-map-gl'
//百度地图
app.use(baiduMap, {
  ak: 'Hz0VU8ujLgk3de6uc3vZqbf9W7TmSef0',
  plugins: ['TrackAnimation'],
})

app.mount('#app')
